package org.eclipse.football;

import static org.junit.Assert.fail;
import static org.junit.Assert.*;

import org.junit.Test;

public class CalculateOffPoints {

	@Test
	public void test() {
		// Create an offensive player
		OffPlayer player = new OffPlayer("player", "test");
		
		// Add stats to this player
		player.setPass_yds(100);
		player.setPass_tds(1);
		player.setPicks(2);
		player.setRush_yds(20);
		player.setRush_tds(1);
		player.setRec_yds(10);
		player.setRec_tds(2);
		player.setFumbles(1);
		player.setRet_tds(1);
		
		assertEquals(6, player.calculatePoints() );
//		// Check if players points are calculated correctly
//		if(player.calculatePoints() != 29){
//			// If not then fail
//			String points = String.format("%d\n", player.calculatePoints());
//			fail("Offensive Players points calculated incorrectly: "+points+"\n");
//		}
	}

}
